Add css node tests for paned node ordering
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 05:41:44 +0000 (00:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 05:41:44 +0000 (00:41 -0500)
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/paned.ltr.nodes [new file with mode: 0644]
testsuite/css/nodes/paned.ltr.ui [new file with mode: 0644]
testsuite/css/nodes/paned.rtl.nodes [new file with mode: 0644]
testsuite/css/nodes/paned.rtl.ui [new file with mode: 0644]

index b73a844e31acc42c9d69ce5b2930d6b8bc2c9240..df11824d357dfb45d5ed35cd042f6bc292ad74a4 100644 (file)
@@ -34,6 +34,8 @@ test_data = \
        entries.ui      entries.nodes           \
        levelbar.ui     levelbar.nodes          \
        notebook.ui     notebook.nodes          \
+       paned.ltr.ui    paned.ltr.nodes         \
+       paned.rtl.ui    paned.rtl.nodes         \
        progressbar.ui  progressbar.nodes       \
        $(NULL)
 
diff --git a/testsuite/css/nodes/paned.ltr.nodes b/testsuite/css/nodes/paned.ltr.nodes
new file mode 100644 (file)
index 0000000..bab5f56
--- /dev/null
@@ -0,0 +1,6 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  paned.horizontal:dir(ltr)
+    label#label1:dir(ltr)
+    separator:dir(ltr)
+    label#label2:dir(ltr)
diff --git a/testsuite/css/nodes/paned.ltr.ui b/testsuite/css/nodes/paned.ltr.ui
new file mode 100644 (file)
index 0000000..5ec1ff4
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkPaned">
+        <property name="visible">True</property>
+        <property name="orientation">horizontal</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label2</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/paned.rtl.nodes b/testsuite/css/nodes/paned.rtl.nodes
new file mode 100644 (file)
index 0000000..af74112
--- /dev/null
@@ -0,0 +1,6 @@
+[window.background:dir(rtl)]
+  decoration:dir(ltr)
+  paned.horizontal:dir(rtl)
+    label#label2:dir(ltr)
+    separator:dir(rtl)
+    label#label1:dir(ltr)
diff --git a/testsuite/css/nodes/paned.rtl.ui b/testsuite/css/nodes/paned.rtl.ui
new file mode 100644 (file)
index 0000000..5ec1ff4
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkPaned">
+        <property name="visible">True</property>
+        <property name="orientation">horizontal</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label2</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>